package com.zcbl.toolkit.util;

import java.util.concurrent.CountDownLatch;

/**
 * @author he peng
 * @create 2018/4/8 17:22
 * @see
 */
public class ThreadUtils {

    private ThreadUtils() {}

    /**
     * 永久性阻塞线程 , 慎用
     * @throws InterruptedException
     */
    public static void blockingThread() throws InterruptedException {
        CountDownLatch countDownLatch = new CountDownLatch(1);
        countDownLatch.await();
    }

}
